package site.zhouinfo.function;

/**
 * @author zhou
 * @create 2017-02-09 14:42
 * @email zhouinfo@qq.com
 */
public class lambda {
    public static void main(String[] args) {
        test();
        lambdaTest();
    }

    public static void test() {
        new Thread(new Runnable() {
            public void run() {
                System.out.println("test");
            }
        }).start();
    }

    public static void lambdaTest() {
        new Thread(() -> System.out.println("lambdaTest")).start();
    }

    public static void lambda2() {
        //new Thread(System.out::println("lambda2"));
    }

}
